const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CABU2yqk3uxNdb.js","assets/CtbHscGXagutd.js","assets/CtybWkkwagutd.js","assets/2PUedpbZ2IPdvA.css","assets/ed_a_3RY1LONdi.css","assets/DzYo9vw-2CKrpJ.js","assets/zjL2L3oh2Xyf8y.js","assets/BsAJcGVb1t8dnT.js","assets/Z2gk5ilr85ygF.js","assets/BO-1Nlv-3PfrX1.js","assets/DQa6Go684zgWvW.css","assets/DodXNg5_2Xyf8y.js","assets/Drdc3h_L3J5nVB.css","assets/DnwlHoCT3J5nVB.css","assets/Dbo4x1w21esOcA.js","assets/D71eOpeV18pg8p.js","assets/C3s2euIYc68oV.js","assets/DxtVL4raPQMM7.js","assets/C-UatXJz3yM15e.js","assets/Baw0igdGjuqxK.js","assets/BVVUEwg63hcpv4.js","assets/BokZeiWK4swc5U.js","assets/CDBYYL1MfT5pU.js","assets/48WcsO4x17ghgo.js","assets/CJmxFp2y1NeHlk.css","assets/BO_gbRD4cMCzN.js","assets/Cxks10UZ1E6jjF.js","assets/CCizP58mJRaMq.css","assets/N1aBK_N82aKG0E.js","assets/BFVQcc6Zagutd.js","assets/Bz2936FN3aD96J.js"])))=>i.map(i=>d[i]);
import{_ as c}from"./CtybWkkwagutd.js";import{d as S,p as D,k as n,bf as L,i as O,N as P,O as V,s as _,B as s,b as a,o as e,e as k,u as t,F as u,ap as B,f as I,c as l,Q as p,aj as b}from"./CtbHscGXagutd.js";import{_ as T}from"./zjL2L3oh2Xyf8y.js";import"./BsAJcGVb1t8dnT.js";import"./Z2gk5ilr85ygF.js";import"./BO-1Nlv-3PfrX1.js";import"./DodXNg5_2Xyf8y.js";const w={class:"app-body"},C={key:0,class:"app-body-header"},Q=S({__name:"app-body",setup(N){const y=p(()=>c(()=>import("./CABU2yqk3uxNdb.js"),__vite__mapDeps([0,1,2,3,4]))),h=p(()=>c(()=>import("./DzYo9vw-2CKrpJ.js").then(d=>d.b),__vite__mapDeps([5,2,1,3,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]))),g=p(()=>c(()=>import("./BO_gbRD4cMCzN.js"),__vite__mapDeps([25,1,2,3,15,16,26,17,27]))),m=p(()=>c(()=>import("./N1aBK_N82aKG0E.js"),__vite__mapDeps([28,1,2,3,29,14,30,9,6,7,8,10,11,12,13]))),E=D("body"),o=n([]),i=n(0),r=n();function A(){if(_.workspace?.ready===!0){const d=[...s.listSelected??[]];E("selected",JSON.stringify(d)),s.listSelected?.length===0?o.value=b.value:o.value=b.value.filter(v=>s.listSelected?.includes(v._id)),i.value=o.value.length}else o.value=[],i.value=0;r.value&&(r.value.scrollTop=0)}const f=L(A,{delay:O.list.throttle});return P(f.dispose),V(()=>[_.workspace?.ready,...s.listSelected??[],...s.filter??[]],()=>f()),(d,v)=>(e(),a("div",w,[t(_).workspace?.ready?(e(),a(u,{key:0},[t(B)?k("",!0):(e(),a("div",C,[I(T)])),t(s).appMode==="pay"?(e(),a(u,{key:1},[t(s).listSelected?.length===1?(e(),l(t(g),{key:0,id:t(s).listSelected[0]},null,8,["id"])):(e(),a("div",{key:1,ref_key:"body",ref:r,class:"app-body-body"},[i.value<1?(e(),l(t(m),{key:0})):(e(),l(t(y),{key:1,items:o.value},null,8,["items"]))],512))],64)):(e(),a(u,{key:2},[t(s).listSelected?.length===1?(e(),l(t(h),{key:0,id:t(s).listSelected[0]},null,8,["id"])):(e(),a("div",{key:1,ref_key:"body",ref:r,class:"app-body-body"},[i.value<1?(e(),l(t(m),{key:0})):(e(),l(t(y),{key:1,items:o.value},null,8,["items"]))],512))],64))],64)):k("",!0)]))}});export{Q as default};